package cn.hiapi.user.vo;

import cn.hiapi.basic.entity.BasicEntity;
import cn.hiapi.basic.serializer.LongToStringSerializer;
import cn.hiapi.shop.vo.ShopBase;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import java.math.BigDecimal;

/**
 * @author AdinZ
 * @date 2023/1/2 15:23
 */
@Setter
@Getter
public class ActivityCardOrderVo extends BasicEntity {
    @JSONField(serializeUsing = LongToStringSerializer.class)
    private Long id;
    @ApiModelProperty("商品名")
    private String title;
    @ApiModelProperty("卡包颜色")
    private String color;
    @ApiModelProperty("购买价格")
    private BigDecimal price = BigDecimal.ZERO;
    @ApiModelProperty("活动id")
    private long aid;
    @ApiModelProperty("原价")
    private BigDecimal costPrice = BigDecimal.ZERO;

    @ApiModelProperty("状态 0 待使用,1已使用")
    private int status;
    @ApiModelProperty("兑换开始时间")
    private long useStart;
    @ApiModelProperty("兑换结束时间")
    private long useEnd;
    @ApiModelProperty("次数数量")
    private long number;

    @ApiModelProperty("使用数量")
    private long useNum;

    @ApiModelProperty("创建时间")
    private long created = System.currentTimeMillis();


    @ApiModelProperty("店铺")
    private ShopBase shop;

}
